function pv(ctx) {
    global.console.log('pv')
    ctx.session.counter++
}

module.exports = function () {
    return async function (ctx, next) {
        console.log('pv start')
        pv(ctx)
        await next()
        console.log('pv end')
    }
}